//
// Created by pengy on 2023/11/2.
//

#ifndef AUTO_TEST_TOOL__MAINWINDOW_H_
#define AUTO_TEST_TOOL__MAINWINDOW_H_

#include "log/log.h"
#include <QDebug>
#include <QMainWindow>
#include <QtCharts>
#include <QtMultimedia/QMediaPlayer>
#include <map>
#include <qtmetamacros.h>
#include "CVideoTest.h"

QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE

class MainWindow : public QMainWindow {
  Q_OBJECT

public:
  explicit MainWindow(QWidget *parent = nullptr);
  ~MainWindow() override;

private:
  void SetMediaFile(QString file);
  void TestSigleFile(QString file);
public slots:
  void OnInitWindow();
private slots:
  void on_actionDataConvert_triggered();
  void on_actionDataTest_triggered();
  void on_actionStart_triggered();
  void on_actionStop_triggered();
  void on_actionSettings_triggered();
private:
  Ui::MainWindow *ui;

private:
  CThreadVideoTest *thread_test_;
};

#endif // AUTO_TEST_TOOL__MAINWINDOW_H_
